package com.loto.insurance.mis.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.loto.insurance.mis.web.authority.INSAuthority;
import com.loto.insurance.mis.web.enumeration.MenuEnum;
import com.loto.insurance.mis.web.enumeration.FeeTypeEnum;
import com.loto.insurance.mis.web.enumeration.PayChannelEnum;

@Controller
public class FinancialController {

  @INSAuthority(authorityMenu = MenuEnum.FINANCIAL_FEE_LIST)
  @RequestMapping(value = "/financial/feelist", method = RequestMethod.GET)
  public String orderlist(Model model) {
	model.addAttribute("subId", MenuEnum.FINANCIAL_FEE_LIST.getIndex());
	model.addAttribute("feeTypeList", FeeTypeEnum.values());
	model.addAttribute("channelList", PayChannelEnum.values());
	return "financial/fee_list";
  }

  @INSAuthority(authorityMenu = MenuEnum.FINANCIAL_FEE_LIST)
  @RequestMapping(value = "/financial/feeadjust", method = RequestMethod.GET)
  public String feeadjust(Model model) {
	model.addAttribute("feeTypeList", FeeTypeEnum.values());
	return "financial/fee_adjust";
  }
}
